package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_userupload")
//@NamedQueries({@NamedQuery(name = "NewsUserupload.findAll", query = "SELECT n FROM NewsUserupload n"), @NamedQuery(name = "NewsUserupload.findById", query = "SELECT n FROM NewsUserupload n WHERE n.fileid = :fileid")})
public class NewsUserupload implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    @Basic(optional = false)
	    @Column(name = "fileid")			  
	    private Integer fileid;						  
	    @Column(name = "clientid")             
	    private String clientid;               	  
	    @Column(name = "usersetname")                
	    private String usersetname;               	  //文件的用户指定名
	    @Column(name = "usersetdesc")
	    private String usersetdesc;               	  //文件描述
	    @Column(name = "filelength")
	    private String filelength;                 	  //文件长度
	    @Column(name = "isok")
	    private Integer isok;                 	      //是否已经传输结束 1没有2结束
	    @Column(name = "fullpath")
	    private String fullpath;                 	  //文件存储绝对路径
	    @Column(name = "isdeletebyuser")
	    private Integer isdeletebyuser;                //是否被自身删除1刚建立2已删除
	    @Column(name = "isdelete")
	    private Integer isdelete;                 	  //是否被管理员删除1没有2已删除
	    @Column(name = "ischeck")
	    private Integer ischeck;                 	  //1是2否
	    
	    public NewsUserupload(){
	    	
	    }
	    public NewsUserupload(Integer fileid){
	    	this.fileid=fileid;
	    }
	    
		public Integer getFileid() {
			return fileid;
		}
		public void setFileid(Integer fileid) {
			this.fileid = fileid;
		}
		public String getClientid() {
			return clientid;
		}
		public void setClientid(String clientid) {
			this.clientid = clientid;
		}
		public String getUsersetname() {
			return usersetname;
		}
		public void setUsersetname(String usersetname) {
			this.usersetname = usersetname;
		}
		public String getUsersetdesc() {
			return usersetdesc;
		}
		public void setUsersetdesc(String usersetdesc) {
			this.usersetdesc = usersetdesc;
		}
		public String getFilelength() {
			return filelength;
		}
		public void setFilelength(String filelength) {
			this.filelength = filelength;
		}
		public Integer getIsok() {
			return isok;
		}
		public void setIsok(Integer isok) {
			this.isok = isok;
		}
		public String getFullpath() {
			return fullpath;
		}
		public void setFullpath(String fullpath) {
			this.fullpath = fullpath;
		}
		public Integer getIsdeletebyuser() {
			return isdeletebyuser;
		}
		public void setIsdeletebyuser(Integer isdeletebyuser) {
			this.isdeletebyuser = isdeletebyuser;
		}
		public Integer getIsdelete() {
			return isdelete;
		}
		public void setIsdelete(Integer isdelete) {
			this.isdelete = isdelete;
		}
		public Integer getIscheck() {
			return ischeck;
		}
		public void setIscheck(Integer ischeck) {
			this.ischeck = ischeck;
		}
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (fileid != null ? fileid.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsUserupload)) {
	            return false;
	        }
	        NewsUserupload other = (NewsUserupload) object;
	        if ((this.fileid == null && other.fileid != null) || (this.fileid != null && !this.fileid.equals(other.fileid))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsUserupload[fileid=" + fileid + "]";
	    }
}
